package springIOC.IOC_XML.factory;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import springIOC.IOC_XML.beans.Account;

@Component
public class AccountFactory {

    @Bean("account")
    @Scope("prototype")
    public Account getAccount(){
        Account a=new Account();
        a.setAid(1001);
        a.setPassword("password");
        return a;
    }
}
